onmessage = function (e) {
    let data = e.data;
    let chunk = 1000;
    let total = Math.ceil(data.length / chunk);
    for (let i = 0; i < total; i++) {
        let start = i * chunk;
        let end = start + chunk;
        let list = data.slice(start, end);
        // 发送数据事件
        postMessage(list);
    }
};